﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CollapseExpand.aspx.cs"
    Inherits="demo.Pages.CollapseExpand" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style>
        .tb
        {
            border: 0px;
            border-left: 1px solid #99BBE8;
            /*border-right: 1px solid #99BBE8;
            background-color: #BEDF9E;*/
            height: 100%;
            width: 5px;
        }
        html, body
        {
            height: 100%;
        }
    </style>

    <script language="javascript">
        function collapseExpand() {
            var obj = parent.document.getElementById('content');
            if (obj.cols == "230,7,*") {
                obj.cols = "0,7,*";
                document.getElementById('collapse_expand').src = '../images/expand.gif';
            }
            else {
                obj.cols = "230,7,*";
                document.getElementById('collapse_expand').src = '../images/collapse.gif';
            }
        }
    </script>

</head>
<body>
    <div class="tb">
        <table border="0" cellpadding="0" cellspacing="0" height="100%">
            <tr>
                <td>
                    <img src="../images/collapse.gif" id="collapse_expand" title="Collapse/Expand" onclick="collapseExpand()" />
                </td>
            </tr>
        </table>
    </div>
</body>
</html>
